<#if result?? && result.pageCount?? && result.pageCount &gt; 1>
	<script>
		layui.use(['laypage', 'layer'], function(){
		  var laypage = layui.laypage
		  ,layer = layui.layer;
		
		  laypage.render({
				elem : "page",
				first:1,
				last:${result.pageCount},
				limit:${result.pageSize},
				groups:5,
				count : ${result.totalDataCount},
				curr:function(){ //通过url获取当前页，也可以同上（pages）方式获取  
	                var page = location.search.match(/pageNumber=(\d+)/);  
	                return page ? page[1] : 1;  
	            }(),  //获取hash值为fenye的当前页
			    /* hash: '',//自定义hash值 */
			    	prev:"上一页",//上一页   
	                next:"下一页  ",//下一页  
	                layout:['prev', 'page', 'next','limit', 'skip'],
	                jump: function(obj,first){//点击页码出发的事件  
	                    if(first!=true){//是否首次进入页面  
	                    	var index = layer.msg('加载中...',{icon: 16,time:false,shade:0.8});
	                        var currentPage = obj.curr;//获取点击的页码   
	                        var pageSize = obj.limit;
	                        console.log(pageSize)
	                        window.location.href ="${pageUrl}pageNumber="+currentPage + "&current=" + currentPage+ "&pageSize=" + pageSize+ "&size=" + pageSize;  
	                    }
	                }  
				
			})
			$("#layui-laypage-1").append("<span>共${result.pageCount}页</span><span>共${result.totalDataCount}数据</span>")
		})
</script>
</#if>